﻿using System;
using System.Web.UI.WebControls;
using Token.Piker.BLL;
using System.Data;
using Token.Piker.Core;
namespace Token.Piker.Web
{
    public partial class Top : PikerBasePage
    {
        static PhotoBLL photoBLL = new PhotoBLL();
        static UserBLL userBLL = new UserBLL();
        static AlbumBLL albumBLL = new AlbumBLL();
        static TopBLL topBLL = new TopBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            rptHotUser.DataSource = topBLL.GetTopList(5, "", "a.LikeCount desc").Tables[0].DefaultView;
            rptHotUser.DataBind();
            rptHotSingle.DataSource = topBLL.GetTopList(5, "Album is null", "a.LikeCount desc").Tables[0].DefaultView;
            rptHotSingle.DataBind();
            rptHotGroup.DataSource = albumBLL.GetList(5, "", "CreateTime desc").Tables[0].DefaultView;
            rptHotGroup.DataBind();
        }
    }
}